<template>
  <div class="product-section">
    <h3>商品详细描述</h3>
    <div class="detail-content">
      <p v-for="(paragraph, index) in description.paragraphs" :key="index">
        {{ paragraph }}
      </p>
      <p>产品特点：</p>
      <ul>
        <li v-for="(feature, index) in description.features" :key="index">
          {{ feature }}
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    description: {
      type: Object,
      required: true
    }
  }
}
</script>

<style scoped>
.product-section {
  margin-top: 30px;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.product-section h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #212529;
  border-left: 4px solid #007BFF;
  padding-left: 10px;
}

.detail-content {
  line-height: 1.8;
  color: #495057;
}

.detail-content p {
  margin-bottom: 15px;
}
</style>